package com.gome.ocean.dao.cango;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.gome.ocean.dao.model.cango.CangoInstances;

/**
 * @author zhangguoqing 2017年2月15日 下午5:05:52
 * @since 5.0.0
 */
@Repository("cangoInstancesDAO")
public interface CangoInstancesDAO {

    public void insert(CangoInstances instances);

    public void update(CangoInstances instances);

    public void deleteById(@Param("id") Long id);

    public void deleteByInstanceName(@Param("instanceName") String instanceName);

    public CangoInstances findByName(@Param("instanceName") String instanceName);

    public void deleteAll();

    public List<CangoInstances> findAllBean(RowBounds rowBounds);

    public List<CangoInstances> findAllBeanByProjectName(RowBounds rowBounds,
                                                         @Param("projectNames") List<String> projectNames);

    List<CangoInstances> findByCondition(Map<String, Object> map);

}
